<?php include 'header-inc.php'; ?>

    <div id="inner-wrap">
        <div id="sidebar">
<?php include 'sidebar-inc.php'; ?>

        </div>
        <div id="content-box">
            <div class="inner-box">
                <div class="cmd">
                    <ul>
                        <li><a href="<?php echo $this->_url('guestbook', null, array(array(FLEA::getAppInf( 'columnAccessor' ) => $_colkey))); ?>">所有留言</a></li>
                    </ul>
                </div>
                <div class="formbox box">
                <form method="post" action="<?php echo $this->_url('guestbook', 'save'); ?>">
                    <h3>回复留言</h3>
                    <table>
                        <tr>
                            <th>姓名：</th>
                            <td><?php echo h(getOption($data['row']['options'], 'username')); ?></td>
                        </tr>
                        <tr>
                            <th>联系电话：</th>
                            <td><?php echo h(getOption($data['row']['options'], 'tel')); ?></td>
                        </tr>
                        <tr>
                            <th>联系邮箱：</th>
                            <td><?php echo h(getOption($data['row']['options'], 'email')); ?></td>
                        </tr>
                        <tr>
                            <th>留言内容：</th>
                            <td><?php echo h($data['row']['content']); ?></td>
                        </tr>
                        <tr>
                            <th>回复留言：</th>
                            <td><textarea id="reply" name="reply" rows="5"><?php echo h($data['row']['reply']); ?></textarea></td>
                        </tr>
                        <tr>
                            <th></th>
                            <td><input type="submit" value="保 存" /> <input type="reset" value="重 置" /></td>
                        </tr>
                    </table>
                    <input type="hidden" id="comment_id" name="comment_id" value="<?php echo $data['row']['comment_id']; ?>" />
                    <input type="hidden" id="site_id" name="site_id" value="<?php echo $_GET['site']; ?>" />
                </form>
                </div>
        </div>
    </div>
</div>
</body>
</html>